package com.ple.app.login;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import com.ple.app.jzsf.R;

/**
 * Created by twenj on 2016/11/14.
 */

public class RegisterActivity extends Activity {


    EditText editTextNewUserName;
    EditText editTextNewUserPsd;
    EditText editTextNewUserPsd2;
    Button btnConfirmRegister;
    Button btnCancelRegister;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.acitivty_register);

        //
        initView();
        //
        initEvents();

    }

    /**
     *
     */
    private void initView() {
        editTextNewUserName = (EditText) findViewById(R.id.editText_regis_user);
        editTextNewUserPsd = (EditText) findViewById(R.id.editText_regis_psd);
        editTextNewUserPsd2 = (EditText) findViewById(R.id.editText_regis_psd2);
        btnConfirmRegister = (Button) findViewById(R.id.btn_regis_confirm);
        btnCancelRegister = (Button) findViewById(R.id.btn_regis_cancel);
    }

    /**s
     *
     */
    private void initEvents() {
        btnCancelRegister.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);
                startActivity(intent);
            }
        });
    }
}
